<h1>Listing masters</h1>

<table>
  <tr>
    <th>Toast</th>
    <th>Name</th>
    <th>Credentials</th>
  </tr>

<% for master in @masters %>
  <tr>
    <td><%=h master.toast_id %></td>
    <td><%=h master.name %></td>
    <td><%=h master.credentials %></td>
    <td><%= link_to 'Show', master %></td>
    <td><%= link_to 'Edit', edit_master_path(master) %></td>
    <td><%= link_to 'Destroy', master, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New master', new_master_path %>
